/*
package com.wwy.component;

import com.wwy.api.CacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

*/
/**
 * 初始化
 *//*

@Component
public class ParamComponent {

    @Autowired
    private CacheService cacheService;

    public ParamComponent(){
        // 构造器先于 @PostConstruct
        System.out.println("初始化开始");
    }

    @PostConstruct
    public void paramInit(){
        System.out.println("初始化进行中...");
        cacheService.put("key1","success");
    }
}
*/
